package cn.itsource.base.mapper;

import cn.itsource.base.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    void save(T t);
    //修改
    void update(T t);
    //删除
    void deleteById(Long id);
    //批量删除
    void batchDeleteByIds(List<Long> ids);
    //查询一个
    T selectById(Long id);

    //查询多个
    List<T> selectAll();
    //分页查询
    List<T> query(BaseQuery query);

    Integer queryCount(BaseQuery query);
}